import requests from "@/utils/request";

// 登录验证接口
export function Login(param1,param2){
    return requests({
        url: '/user/login/'+param1+'/'+param2,
        method: 'get',
    })
}
// 用户注册接口
export function Register(param){
    return requests({
        url: '/user/register',
        method: 'post',
        data: param,
    })
}
// 查询所有用户接口
export function SelectAllUser(){
    return requests({
        url: '/user/selectAll',
        method: 'get',
    })
}
// 修改用户信息接口
export function UpdateById(param){
    return requests({
        url: '/user/updateById',
        method: 'put',
        data: param,
    })
}
// 删除用户信息接口
export function DeleteUserById(param){
    return requests({
        url: '/user/deleteUser/'+param,
        method: 'delete',
    })
}
// 根据id查询用户信息
export function FindById(param1){
    return requests({
        url: '/user/'+param1,
        method: 'get',
    })
}